import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:小乐乐改数字
 * User: wangxin
 * Date: 2024-08-03
 * Time: 17:36
 */
public class test2 {

        public static void main(String[] args) {
            Scanner in = new Scanner(System.in);
            // 注意 hasNext 和 hasNextLine 的区别

            long n = in.nextInt();
            long m = n;
            int count = 0;
            while(m > 0){
                m /= 10;
                count++;
            }
            long[] arr1 = new long[count];
            for(int i = 0;i < arr1.length;i++){
                arr1[i] = n % 10;
                n /= 10;
            }
            int[] arr2 = new int[count];
            for(int i = 0;i < arr2.length;i++){
                if(arr1[i] % 2 == 0){
                    arr2[i] = 0;
                }else{
                    arr2[i] = 1;
                }
            }
            boolean flag = true;
            for(int i = 0; i < arr2.length;i++){
                if(arr2[i] != 0){
                    flag = false;
                    break;
                }

            }
            if(flag){
                System.out.println(0);
                return;
            }

            StringBuffer str = new StringBuffer();
            for(int i = arr2.length - 1;i >= 0;i--){
                str.append(arr2[i]);
            }
            System.out.println(Integer.parseInt(str.toString()));

        }


}
